﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Ninject.Modules;
using Newtonsoft.Json;

using System.Net.DnsToolkit.Serializer.Json;
using System.Net.DnsToolkit.Serializer;
using System.Net.DnsToolkit.Serializer.Json.Converter;

namespace System.Net.DnsToolkit.Configuration {

    public class DnsWriterJsonModule : NinjectModule {
        public override void Load() {

            Bind<IMessageWriter<TextWriter>>().To<MessageWriter>();
            Bind<JsonConverter>().To<IPAddressJsonConverter>();
            Bind<JsonConverter>().To<OpCodeEnumJsonConverter>();
            Bind<JsonConverter>().To<QClassEnumJsonConverter>();
            Bind<JsonConverter>().To<QREnumJsonConverter>();
            Bind<JsonConverter>().To<QTypeEnumJsonConverter>();
            Bind<JsonConverter>().To<RCodeEnumJsonConverter>();


        }
    }
}
